program CardHandleTest;
{

  Delphi DUnit Test Project
  -------------------------
  This project contains the DUnit test framework and the GUI/Console test runners.
  Add "CONSOLE_TESTRUNNER" to the conditional defines entry in the project options 
  to use the console test runner.  Otherwise the GUI test runner will be used by 
  default.

}

{$IFDEF CONSOLE_TESTRUNNER}
{$APPTYPE CONSOLE}
{$ENDIF}

uses
  Forms,
  TestFramework,
  GUITestRunner,
  TextTestRunner,
  TestIDCardForm in 'TestIDCardForm.pas',
  IDCardForm in '..\..\MainSource\CardHandle\IDCardForm.pas',
  uCard in '..\..\MainSource\CardHandle\uCard.pas',
  uCardFilter in '..\..\MainSource\CardHandle\uCardFilter.pas',
  DataModule in 'DataModule.pas' {DM: TDataModule},
  uIDCardHandle in '..\..\MainSource\CardHandle\uIDCardHandle.pas',
  uMFCardHandle in '..\..\MainSource\CardHandle\uMFCardHandle.pas',
  TestMFCardHandle in 'TestMFCardHandle.pas',
  uMifare in '..\..\MainSource\CardHandle\uMifare.pas',
  MFCardForm in '..\..\MainSource\CardHandle\MFCardForm.pas' {frmMFCard},
  uCardHandle in '..\..\MainSource\CardHandle\uCardHandle.pas',
  uCardCheck in '..\..\MainSource\CardHandle\uCardCheck.pas',
  CustomDatatype in '..\..\MainSource\CustomDatatype.pas';

{$R *.RES}

begin
  Application.Initialize;
  Application.MainFormOnTaskBar := True;
  
  Application.CreateForm(TDM, DM);
  if IsConsole then
    TextTestRunner.RunRegisteredTests
  else
    GUITestRunner.RunRegisteredTests;
end.

